import request from "@/utils/request";

export function getList() {
  return request({
    url: '/cms/variable/list',
    method: 'get'
  })
}

export function saveVariable(data) {
  return request({
    url: '/cms/variable/save',
    method: 'post',
    data: data
  })
}

export function updateVariable(data) {
  return request({
    url: '/cms/variable/update',
    method: 'post',
    data: data
  })
}

export function getVariable(id) {
  return request({
    url: '/cms/variable/find/'+id,
    method: 'get'
  })
}

export function deleteVariable(id) {
  return request({
    url: '/cms/variable/delete/'+id,
    method: 'post'
  })
}
